package avriServer.obj;

public class Action {
	private String permission ;
	private String description ;
	public Action (String _permission, String _description) {
		this.permission = _permission ;
		this.description = _description ;
	}
	public Action (String _permission) {
		this.permission = _permission ;
	}
	public boolean isAllowed (boolean _admin) {
		return(_admin && this.permission == "admin" || this.permission == "public");
	}
	public String getDescription () {
		return this.description ;
	}
}
